package com.tydic.springboot.controller;

import cn.hutool.core.lang.Dict;
import com.tydic.springboot.service.DictService;
import com.tydic.springboot.service.StudentSertvice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Autowired
    private StudentSertvice studentSertvice;
    @Autowired
    private DictService dictService;

    @GetMapping("/test")
    public Object test() {
        if (true)
            throw new RuntimeException("主动抛异常");
        return dictService.queryXzqh("0");
    }
}
